import { createApp } from 'vue'
import App from './App.vue'
import router from '@/router'
import store from '@/store/index'
//meta
import metaInfo from 'vue-meta-info'
//element-plus
import elementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import svgIcon from '@/assets/icons/SvgIcon.vue'
//utils
import { parseTime } from '@/utils/ruoyi'


let app = createApp(App);

app.use(router);

app.use(store);

app.use(metaInfo);

app.use(elementPlus);

const svgFiles = require.context('@/assets/icons/svg', false, /\.svg$/);
svgFiles.keys().forEach(element => svgFiles(element));
app.component("svgIcon", svgIcon);

app.config.globalProperties.parseTime = parseTime;

app.mount('#app');
